﻿using Microsoft.SharePoint;

namespace BoldBrick.SharePoint.CommonControls.DataObjects.Base
{
	/// <summary>
	/// Metadata class for <see cref="SPField"/> object custom property
	/// </summary>
	public class ListColumnProperty
	{
		#region Properties

		private readonly string name;
		/// <summary>
		/// Gets name of the custom property
		/// </summary>
		public string Name
		{
			get { return name; }
		}

		private readonly object value;
		/// <summary>
		/// Gets value of the custom property
		/// </summary>
		public object Value
		{
			get { return value; }
		}

		#endregion

		#region Constructor
		/// <summary>
		/// Constructor for <see cref="ListColumnProperty"/> object
		/// </summary>
		/// <param name="name">Name of the custom property</param>
		/// <param name="value">Value of the custom property</param>
		public ListColumnProperty(string name, object value)
		{
			this.name = name;
			this.value = value;
		}

		#endregion


	}
}
